import QtQuick 1.1
import com.nokia.symbian 1.1
import CustomGraphics 1.0

SelectionDialog{
    id:root
    signal drawType(int type)

    Component.onCompleted: {
        drawTypeModel.append({modelData:qsTr("Free hand"), drawType: ImageCanvas.DrawPen})
        drawTypeModel.append({modelData:qsTr("Lines"), drawType: ImageCanvas.DrawLine})
    }

    titleText: qsTr("Drawing")
    model: ListModel{
        id: drawTypeModel
    }

    onSelectedIndexChanged: {
        root.drawType(model.get(selectedIndex).drawType)
    }
}
